package com.user.service;


import com.user.mapper.UserMapper;

import com.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public List<User> findAllUser() {
        return this.userMapper.selectAll();
    }

    public User findUserById(Long id) {
        return this.userMapper.selectByPrimaryKey(id);
    }


}
